home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 19.zip / BS1 part 19 / Lattice C disk 4.adf / Compiler_Headers / graphics / gfxbase.h < prev    next >
C/C++ Source or Header  |  1988-10-25  |  2KB  |  75 lines

  1. #ifndef GRAPHICS_GFXBASE_H
  2. #define GRAPHICS_GFXBASE_H
  3. /*
  4. **    $Filename: graphics/gfxbase.h $
  5. **    $Release: 1.3 $
  6. **
  7. **    
  8. **
  9. **    (C) Copyright 1985,1986,1987,1988 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifndef EXEC_LISTS_H
  14. #include <exec/lists.h>
  15. #endif
  16. #ifndef EXEC_LIBRARIES_H
  17. #include <exec/libraries.h>
  18. #endif
  19. #ifndef EXEC_INTERRUPTS_H
  20. #include <exec/interrupts.h>
  21. #endif
  22.  
  23. struct GfxBase
  24. {
  25.     struct Library  LibNode;
  26.     struct View *ActiView;
  27.     struct copinit *copinit;    /* ptr to copper start up list */
  28.     long    *cia;    /* for 8520 resource use */
  29.     long    *blitter;    /* for future blitter resource use */
  30.     UWORD   *LOFlist;
  31.     UWORD   *SHFlist;
  32.     struct bltnode *blthd,*blttl;
  33.     struct bltnode *bsblthd,*bsblttl;
  34.     struct Interrupt vbsrv,timsrv,bltsrv;
  35.     struct List        TextFonts;
  36.     struct  TextFont *DefaultFont;
  37.     UWORD  Modes;           /* copy of current first bplcon0 */
  38.     BYTE VBlank;
  39.     BYTE Debug;
  40.     SHORT BeamSync;
  41.     SHORT system_bplcon0; /* it is ored into each bplcon0 for display */
  42.     UBYTE   SpriteReserved;
  43.     UBYTE   bytereserved;
  44.     USHORT   Flags;
  45.     SHORT   BlitLock;
  46.     short    BlitNest;
  47.  
  48.     struct    List    BlitWaitQ;
  49.     struct    Task    *BlitOwner;
  50.     struct  List    TOF_WaitQ;
  51.     UWORD    DisplayFlags;    /* NTSC PAL GENLOC etc*/
  52.         /* Display flags are determined at power on */
  53.     struct SimpleSprite **SimpleSprites;
  54.     UWORD    MaxDisplayRow;        /* hardware stuff, do not use */
  55.     UWORD    MaxDisplayColumn;    /* hardware stuff, do not use */    
  56.     UWORD    NormalDisplayRows;
  57.     UWORD    NormalDisplayColumns;
  58.     /* the following are for standard non interlace, 1/2 wb width */
  59.     UWORD    NormalDPMX;        /* Dots per meter on display */
  60.     UWORD    NormalDPMY;        /* Dots per meter on display */
  61.     struct    SignalSemaphore *LastChanceMemory;
  62.     UWORD    *LCMptr;
  63.     UWORD    MicrosPerLine;    /* 256 time usec/line */
  64.     UWORD    MinDisplayColumn;
  65.     ULONG    reserved[23];     /* for future use */
  66.     };
  67.  
  68. #define NTSC    1
  69. #define GENLOC    2
  70. #define PAL        4
  71.  
  72. #define BLITMSG_FAULT    4
  73.  
  74. #endif    /* GRAPHICS_GFXBASE_H */
  75.